]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ScreenShield: fix a typo due to the MetaCursorTracker switch
authorGiovanni Campagna <gcampagn@redhat.com>
Thu, 12 Sep 2013 11:04:47 +0000 (13:04 +0200)
committerGiovanni Campagna <gcampagn@redhat.com>
Thu, 12 Sep 2013 11:17:23 +0000 (13:17 +0200)
And replace another show_cursor() usage with the new API.

Reviewed-by: Carlos Soriano in IRC.
js/ui/screenShield.js

index e5ba2de302260d29431e9c2b8ae0f837c720e009..32fd737b609c3f35cd46ec12217668d88a542db2 100644 (file)
@@ -1087,15 +1087,15 @@ const ScreenShield = new Lang.Class({
 
         this._checkArrowAnimation();
 
-        let motionId = global.stage.connect('captured-event', function(stage, event) {
+        let motionId = global.stage.connect('captured-event', Lang.bind(this, function(stage, event) {
             if (event.type() == Clutter.EventType.MOTION) {
-                global.stage.show_cursor();
+                this._cursorTracker.set_pointer_visible(true);
                 global.stage.disconnect(motionId);
             }
 
             return false;
-        });
-        this._cursorTracker.set_pointer_tracker(false);
+        }));
+        this._cursorTracker.set_pointer_visible(false);
 
         this._lockScreenState = MessageTray.State.SHOWN;
         this._lockScreenGroup.fixed_position_set = false;